package com.dt.app.modules.product.entities;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 鸿源塔基
 * @since 2024-03-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("product_media")
@ApiModel(value="ProductMedia对象", description="")
public class ProductMedia implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "产品图片")
    @TableId(value = "product_media_id", type = IdType.AUTO)
    private Long productMediaId;

    @ApiModelProperty(value = "产品")
    @TableField("product_id")
    private Integer productId;

    @ApiModelProperty(value = "排序")
    @TableField("seq")
    private Integer seq;

    @ApiModelProperty(value = "路径")
    @TableField("url")
    private String url;

    @ApiModelProperty(value = "说明")
    @TableField("msg")
    private String msg;


}
